#!/bin/bash
set -o errexit # Set the shell option to exit on error

DIRNAME=`dirname $0`
source ${DIRNAME}/action_functions.bash
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
plain='\033[0m'

function deal(){
  # 更新apt源
  sed -i '/http/s@http://.*.com@https://mirrors.aliyun.com@g' /etc/apt/sources.list
  apt-get update > /dev/null 2>&1
}

function main(){
  action $0 deal
}

main $*
